package org.protege.owl.examples.tab;

import java.util.ArrayList;

import javax.swing.table.DefaultTableModel;

public class PublisherTableModel extends DefaultTableModel
{	
	private static final long serialVersionUID = -2879792302153980861L;

	public PublisherTableModel()
	{
		super(1,1);
		columnNames = new ArrayList<String>();
		columnNames.add("Issue a query to obtain results...");
	}
	
	public PublisherTableModel(ArrayList<String> cn, int rowCount)
	{
		super(rowCount, cn.size());
		columnNames = cn;
	}

	@Override
	public boolean isCellEditable(int row, int column)
	{
		return false;
	}
	
	public String getColumnName(int col) 
	{
        return columnNames.get(col);
    }
	
	private ArrayList<String> columnNames;
}
